package com.example.fridaykt.common.exception

/**
 * 自定义异常
 */
class CustomException : RuntimeException {
    var code: Int? = null
        private set

    override var message: String
        private set

    constructor(message: String) {
        this.message = message
    }

    constructor(message: String, code: Int?) {
        this.message = message
        this.code = code
    }

    constructor(message: String, e: Throwable?) : super(message, e) {
        this.message = message
    }

    companion object {
        private const val serialVersionUID = 1L
    }
}
